package za.ac.wits.elen7045.persistence.datasource;

import za.ac.wits.elen7045.persistence.Environment;
import za.ac.wits.elen7045.persistence.PersistentObject;

public interface DataSource<T extends PersistentObject> {
	
	public void open();
	public void commit();
	public void rollback();
	public void close();
	public boolean isOpen();
	public Iterable<T> retrieve(String query);
	public void submit(String query);
	public void setEnvironment(Environment env);

}
